package com.zhiche.lisa.bms.dao.model.pay;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 付款确认
 * </p>
 *
 * @author WangShuiJin
 * @since 2018-10-11
 */
@TableName("lisa_pay_affirm")
public class PayAffirm extends Model<PayAffirm> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 付款单号
     */
	@TableField("pay_code")
	private String payCode;
    /**
     * 排款主表id
     */
	@TableField("capital_id")
	private Long capitalId;
    /**
     * 付款日期
     */
	@TableField("pay_date")
	private Date payDate;
    /**
     * 付款类型; 10-发票, 20-现金
     */
	@TableField("pay_type")
	private String payType;
	/**
	 * 类型
	 */
	private Integer type;
    /**
     * 总付款金额
     */
	@TableField("pay_sum")
	private BigDecimal paySum;

	/**
	 * 状态
	 */
	@TableField("status")
	private Integer status;

    /**
     * 租户id
     */
	@TableField("tenant_id")
	private Long tenantId;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;

	public Long getCapitalId() {
		return capitalId;
	}

	public void setCapitalId(Long capitalId) {
		this.capitalId = capitalId;
	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getPayCode() {
		return payCode;
	}

	public void setPayCode(String payCode) {
		this.payCode = payCode;
	}

	public Date getPayDate() {
		return payDate;
	}

	public void setPayDate(Date payDate) {
		this.payDate = payDate;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public BigDecimal getPaySum() {
		return paySum;
	}

	public void setPaySum(BigDecimal paySum) {
		this.paySum = paySum;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getStatus () {
		return status;
	}

	public void setStatus (Integer status) {
		this.status = status;
	}

	@Override
	public String toString () {
		return "PayAffirm{" +
				"id=" + id +
				", payCode='" + payCode + '\'' +
				", payDate=" + payDate +
				", payType='" + payType + '\'' +
				", type='" + type + '\'' +
				", paySum=" + paySum +
				", status=" + status +
				", tenantId=" + tenantId +
				", gmtCreate=" + gmtCreate +
				'}';
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
